package org.pay.model;

import androidx.annotation.NonNull;

public class PayRefundReqModel {

    // string Y 1024 消費者行動支付一維或二維條碼值
    private String BuyerID;

    //string Y 2   掃碼退款請填入 ‘23’
    private String TxType = "23";

    //string Y 50 端末設備此筆交易之交易編號（正負交易皆不得重複）?
    private String BillNumber;

    //Y 10交易含兩位小數但不包含小數點之金額。Ex:交易 950元，應填入 95000。
    private int Amount;

    //string Y 8交易日期 (YYYYMMDD)Ex: 20211231
    private String LocalDate;

    //LocalTime string Y 6 交易時間 (hhmmss)Ex: 235959
    private String LocalTime;


    public PayRefundReqModel(String buyerID, String txType, String billNumber, int amount, String localDate, String localTime) {
        BuyerID = buyerID;
        TxType = txType;
        BillNumber = billNumber;
        Amount = amount;
        LocalDate = localDate;
        LocalTime = localTime;
    }

    public String getBuyerID() {
        return BuyerID;
    }

    public void setBuyerID(String buyerID) {
        BuyerID = buyerID;
    }

    public String getTxType() {
        return TxType;
    }

    public void setTxType(String txType) {
        TxType = txType;
    }

    public String getBillNumber() {
        return BillNumber;
    }

    public void setBillNumber(String billNumber) {
        BillNumber = billNumber;
    }

    public int getAmount() {
        return Amount;
    }

    public void setAmount(int amount) {
        Amount = amount;
    }

    public String getLocalDate() {
        return LocalDate;
    }

    public void setLocalDate(String localDate) {
        LocalDate = localDate;
    }

    public String getLocalTime() {
        return LocalTime;
    }

    public void setLocalTime(String localTime) {
        LocalTime = localTime;
    }


    @Override
    public String toString() {
        return "PayRefundReqModel{" +
                "BuyerID='" + BuyerID + '\'' +
                ", TxType='" + TxType + '\'' +
                ", BillNumber='" + BillNumber + '\'' +
                ", Amount=" + Amount +
                ", LocalDate='" + LocalDate + '\'' +
                ", LocalTime='" + LocalTime + '\'' +
                '}';
    }
}
